package com.furschina.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import cn.wooshai.core.service.local.AbstractService;

import com.furschina.dao.ArticleRecordDao;
import com.furschina.model.Article;
import com.furschina.model.ArticleRecord;

@Service
@Transactional(propagation = Propagation.REQUIRED)
public class ArticleRecordService extends AbstractService<ArticleRecordDao, ArticleRecord> {
	
	public void incrViews(Article article) {
		this.dao.incrViews(article.getId());
	}
	
	public void incrDiggs(Article article) {
		this.dao.incrDiggs(article.getId());
	}
	
	public void incrBuries(Article article) {
		this.dao.incrBuries(article.getId());
	}
}
